package com.chushouya.order.dto.api.push;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 订单推送请求DTO
 * 
 * @author chushouya
 */
@Data
@ApiModel("订单推送请求")
public class OrderPushRequestDTO {

    @ApiModelProperty("推送类型")
    @NotBlank(message = "推送类型不能为空")
    private String notifyType;

    @ApiModelProperty("合作商订单号")
    @NotBlank(message = "合作商订单号不能为空")
    private String partnerOrderNo;

    @ApiModelProperty("推送名称")
    private String notifyName;

    @ApiModelProperty("推送数据")
    @NotNull(message = "推送数据不能为空")
    private OrderPushDataDTO data;
}
